<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>vue学习</title>
    <script src="./js/vue.js"></script>
  </head>
  <body>
    <div id="app">
      <!-- 
        v-if='条件'
        v-else

        多条件
        
        v-if='条件'
        v-else-if='条件'
        v-else
       -->
      <div v-if="age<=10">儿童</div>
      <div v-else-if="age<=20">少年</div>
      <div v-else>老年</div>
    </div>
    <script>
      const app = Vue.createApp({
        data() {
          return {
            age: 11
          }
        }
      })
      app.mount('#app')
    </script>
  </body>
</html>
